home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu11 / gloadd3b.arc / D3BLINK.ASM < prev    next >
Assembly Source File  |  1991-09-09  |  3KB  |  79 lines

  1. ******************************************************************************
  2. ******************************************************************************
  3. *                                                                            *
  4. *                   D3 Bootstrap Down Load Test Program                      *
  5. *                                                                            *
  6. ******************************************************************************
  7. *                                                                            *
  8. * Program Name:D3BLINK.ASM                                                   *
  9. * Revision: 0.02                                                             *
  10. * Date: 9/09/91                                                              *
  11. * Written By: Robert Chretien                                                *
  12. *             Motorola MCU Applications                                      *
  13. * Assembled Under: Motorola Portable Cross Assembler (PASM) or               *
  14. *                  Motorola Freeware Assembler (AS11)                        *
  15. * Program Description:                                                       *
  16. *                                                                            *
  17. *                                                                            *
  18. *                                                                            *
  19. *                                                                            *
  20. *                                                                            *
  21. ******************************************************************************
  22. *                                                                            *
  23. * Revision Descriptions:                                                     *
  24. * 1. Rev 0.00: Original program.                                             *
  25. * 2. Rev 0.01: Added header and comments.                                    *
  26. *              Changes made so LED blinks 16 times then go to Boot ROM.      *
  27. * 3. Rev 0.02: Gets boot ROM start address from boot reset vector rather     *
  28. *              than assuming it will always stay the same.                   *
  29. *                                                                            *
  30. ******************************************************************************
  31. ******************************************************************************
  32.  
  33. RAM     EQU     $0040
  34. REGS    EQU     $0000
  35. EPROM   EQU     $F000
  36. VECTORS    EQU    $FFD6
  37. PORTC   EQU     REGS+$03
  38. PortD   EQU     REGS+$08
  39. DDRD    EQU     REGS+$09
  40. CFORC   EQU     REGS+$0B
  41. TCNT    EQU     REGS+$0E
  42. TOC2    EQU     REGS+$18
  43. TCTL1   EQU     REGS+$20
  44. TCTL2   EQU     REGS+$21
  45. TMSK1   EQU     REGS+$22
  46. TFLG1   EQU     REGS+$23
  47. TMSK2   EQU     REGS+$24
  48. TFLG2   EQU     REGS+$25
  49. OPTION  EQU     REGS+$39
  50. *
  51. *
  52. *
  53.     ORG    EPROM
  54. INITIAL LDS     #$00FF
  55.         LDAA    #%00100000
  56.         STAA    DDRD
  57.         LDX     #$0010
  58. START   LDAA    PortD
  59.         ANDA    #%11011111
  60.         STAA    PortD
  61.         LDY     #$F000
  62. DECY1   DEY
  63.         BNE     DECY1
  64.         LDAA    PortD
  65.         ORAA    #%00100000
  66.         STAA    PortD
  67.         LDY     #$F000
  68. DECY2   DEY
  69.         BNE     DECY2
  70.         DEX
  71.         BNE     START
  72.         LDX     $BFFE
  73.         JMP     0,X
  74. *
  75. *
  76. *
  77.         END
  78.  
  79.